package org.jrazdacha.bittorrent.modelling.agent;

import org.jrazdacha.bittorrent.modelling.core.Id;

import jade.core.AID;

public class IdAIDImpl extends Id {

	private AID aid;

	public IdAIDImpl(AID aid) {
		this.aid = aid;
	}
	
	@Override
	public Object getValue() { 
		return aid;
	}

	@Override
	protected boolean customEquals(Object otherObj) {
		IdAIDImpl otherAID = (IdAIDImpl)otherObj;
		return aid.equals(otherAID.aid);
	}

	@Override
	public int hashCode() {		
		return aid.hashCode();
	}		
}
